package com.yuyang.common.constant;

/**
 * @author yu yang
 * @date 2022/12/6 -22:58
 */
public class ProductConstants {
    public static String PRODUCT_CATELOGLEVELTWO = "product:catelogLevelTwo";
    public static String PRODUCT_CATELOG_LOCK = "product:catelog:lock";

    public enum AttrType{
        ATTR_TYPE_SALE("sale",0),ATTR_TYPE_BASE("base",1);
        private String msg;
        private Integer code;

        AttrType(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }
    public enum AttrSearchTypeEnum{
        NEED_SEARCH("不需要检索属性",0),NO_NEED_SEARCH("需要检索属性",1);
        private String msg;
        private Integer code;

        AttrSearchTypeEnum(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }
    public enum PublishStatusEnum{
        NEW_SPU("新建",0),SPU_UP("上架",1),SPU_DOWN("下架",1);
        private String msg;
        private Integer code;

        PublishStatusEnum(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }
}
